﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NijiaSword : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
        transform.position += new Vector3(-1, 0, 0);
    }

    private void OnCollisionEnter2D(Collision2D o)
    {
        if (o.gameObject.tag=="Player")
        {
            Destroy(gameObject);
            PlayerBloodController.con.SetBlood();
            PlayerController.con.PlayerHurt();
        }
    }
}
